<template>
	<view class="yp" :class="{'theme--Black':CurrentTheme.name==='DarkMode'}">
		<app-headers></app-headers>
		<headers></headers>
		<bodys></bodys>
	</view>
</template>

<script>
import {CheckUpdate} from '../../common/API/index.js'
import headers from './header/index.vue';
import bodys from './main/index.vue';
export default {
	name: '',
	components: { headers, bodys },
	onShow(){
		// #ifdef APP-PLUS
		//设置导航栏前景色
		this.$nextTick(()=>plus.navigator.setStatusBarStyle(this.CurrentTheme.name==='DarkMode'?'light':"dark"))
		// #endif
		
		uni.showTabBar({ animation: true });
		console.log('index页面onshow')
		
		// 引导页验证
		this.$pub.getStorageSync('IsGuide')?"":this.$pub.redirTo('/pages/other/guide/guide')
		
		// token 验证到登录页
		this.$pub.getStorageSync('Token')?"":this.$pub.redirTo('/pages/other/login/index')
	},
	methods:{
	}
};
</script>

<style lang="less">
.yp {
	/* #ifdef H5 */
	height: calc(100vh - 50px);
	/* #endif */
	/* #ifdef APP-PLUS */
	height: 100vh;
	/* #endif */
	overflow: scroll;
}

.theme--Black{
	/deep/ .input-box{
		background-color: gray;
		color:#ffffff;
	}
	/deep/ .icon-circle{
		background-color: gray;
		color:#ffffff;
	}
	/deep/ .CommonServices .functions .fn-item{
		background-color: #000000;
		color:#ffffff;
	}
}
</style>
